<html>
<head>
  <title>Login Page</title>
  <meta name="layout" content="main"/>
</head>
<body>
<div class="body">
  <g:if test="${flash.message}">
    <div class="errors">
      ${flash.message}
    </div>
  </g:if>
  <g:form controller="login" action="handleLogin">
    <div class="dialog">
      <table>
        <tbody>
        <tr class='prop'>
          <td valign='top' class='nameClear'>
            <label for="login">Login:</label>
          </td>
          <td valign='top' class='valueClear ${hasErrors(bean: user, field: 'email', 'errors')}'>
            <input type="text" name="email"/>
          </td>
        </tr>
        <tr class='prop'>
          <td valign='top' class='nameClear'>
            <label for="password">Password:</label>
          </td>
          <td valign='top' class='valueClear ${hasErrors(bean: user, field: 'password', 'errors')}'>
            <input type="password" name="password"/>
          </td>
        </tr>
        </tbody>
      </table>
    </div>
    <div class="buttons">
      <input class="save" type="submit" value="Login">
    </div>
  </g:form>
  <p>Don't have an account?  <g:link controller="userAccount" class="create" action="create">Create one here.</g:link></p>
</div>
</body>
</html>
